<!DOCTYPE html>
<script src=full-screen-test.js></script>
<style>
#v {
  writing-mode: vertical-rl;
}
</style>
<div id=v><span id=fullscreen></span></div>
<script>
function fullscreenChanged() {
  // Change the 'display' property to cause reattach.
  fullscreen.style.display = 'block';
  document.body.offsetTop;

  document.exitFullscreen();

  endTest();
}
waitForEvent(document, "webkitfullscreenchange", fullscreenChanged);
runWithKeyDown(function () {
  fullscreen.webkitRequestFullscreen();
});
</script>
